package com.ruoyi.system.service;

import com.ruoyi.system.domain.PracticeCadetExperience;
import com.ruoyi.system.domain.PracticeCadetExperienceCount;

import java.util.List;

/**
 * 实践心得Service接口
 *
 * @author dp
 * @date 2023-11-27
 */
public interface IPracticeCadetExperienceService {
    /**
     * 查询实践心得
     *
     * @param experienceId 实践心得主键
     * @return 实践心得
     */
    public PracticeCadetExperience selectPracticeCadetExperienceByExperienceId(Long experienceId);

    /**
     * 查询实践心得列表
     *
     * @param practiceCadetExperience 实践心得
     * @return 实践心得集合
     */
    public List<PracticeCadetExperience> selectPracticeCadetExperienceList(PracticeCadetExperience practiceCadetExperience);

    /**
     * 查询实践心得合计列表
     * @param submitBegin
     * @param submitEnd
     * @param baseId
     * @param experienceStatus
     * @return
     */
    public List<PracticeCadetExperienceCount> selectPracticeCadetExperienceCount(String submitBegin, String submitEnd, String baseId, String experienceStatus);

    /**
     * 根据条件查询时间心得
     * @param submitBegin
     * @param submitEnd
     * @param baseId
     * @param cadetId
     * @param experienceStatus
     * @return
     */
    public List<PracticeCadetExperience> getExperienceList(String submitBegin, String submitEnd, String baseId, String cadetId, String experienceStatus);

    /**
     * 新增实践心得
     *
     * @param practiceCadetExperience 实践心得
     * @return 结果
     */
    public int insertPracticeCadetExperience(PracticeCadetExperience practiceCadetExperience);

    /**
     * 修改实践心得
     *
     * @param practiceCadetExperience 实践心得
     * @return 结果
     */
    public int updatePracticeCadetExperience(PracticeCadetExperience practiceCadetExperience);

    /**
     * 批量删除实践心得
     *
     * @param experienceIds 需要删除的实践心得主键集合
     * @return 结果
     */
    public int deletePracticeCadetExperienceByExperienceIds(Long[] experienceIds);

    /**
     * 删除实践心得信息
     *
     * @param experienceId 实践心得主键
     * @return 结果
     */
    public int deletePracticeCadetExperienceByExperienceId(Long experienceId);

    /**
     * 实体数据补全
     *
     * @param practiceCadetExperience 实体
     * @param userId                  用户id
     * @param crateType               创建类型 1：新增 2：修改
     */
    public void completeData(PracticeCadetExperience practiceCadetExperience, Long userId, Integer crateType);
}
